<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script src="<%=contextPath%>/ext3/ext-lang-zh_CN.js"></script>
 	<style>
		.icon_user {
			background-image: url(<%=contextPath%>/images/user_suit.png)!important;
		}
		
		.icon_kq {
			background-image: url(<%=contextPath%>/images/time.gif)!important;
		}
		
				.icon_3 {
			background-image: url(<%=contextPath%>/images/edit.gif)!important;
		}
		
				.icon_4 {
			background-image: url(<%=contextPath%>/images/tishi.png)!important;
		}
 	
 	</style>
<script type="text/javascript">

	//屏蔽js错误 
 	function ResumeError() { return true; } window.onerror = ResumeError; 



var tabPanel;
Ext.onReady(function(){

    // 主面板（已有tab）   
     tabPanel = new Ext.TabPanel({   
        region:'center',   
        deferredRender:false,   
        autoScroll: true,    
        margins:'0 4 4 0',   
        activeTab:0,   
        // 激活前判断
		listeners:{"tabchange":function(Tabs, tab){ 
			setActiveTab(tab);
        }},
        items:[{   
            	id:'userTab',
            	contentEl:'tabs',   
            	title: '绩效人员',   
            	iconCls:'icon_user',  
            	closable:false,   
            	autoScroll:true,
				html:'<iframe id="ifrmUser" src="<%=contextPath%>/jxcp!getUserList.do" width="100%" height="1000" frameborder="0" scrolling="yes"></iframe>'  
        	},{   
            	id:'kqTab',
            	iconCls:'icon_kq',
            	title: '考勤',   
            	closable:false,   
            	autoScroll:true,
				html:'<iframe id="ifrmKq" src="" width="100%" height="1000" frameborder="0" scrolling="no"></iframe>'  
        	},{   
            	id:'gzzlkhTab',   
            	title: '工作质量考核', 
            	iconCls:'icon_3',
            	closable:false,
            	autoScroll:true,
				html:'<iframe id="ifrmGzzlkh" src="" width="100%" height="1000" frameborder="0" scrolling="no"></iframe>'  
        	},{   
            	id:'zxkhTab',   
            	title: '专项考核',
            	iconCls:'icon_4',
            	closable:false,   
            	autoScroll:true,
				html:'<iframe id="ifrmZxkh" src="" width="100%" height="1000" frameborder="0" scrolling="no"></iframe>'  
        	}] 
    });   

    //  配置视图viewport   
    viewport = new Ext.Viewport({   
           layout:'border',   
           items:[tabPanel]});   

});    

    
    // tab变化时触发事件
	function setActiveTab(tab) {

		var isMSIE= (navigator.appName == "Microsoft Internet Explorer");  //判断浏览器 
        if (isMSIE) {
			
			if (tab.id == "userTab" && window.document.getElementById("ifrmUser").src == "") {
	 			window.document.getElementById("ifrmUser").src = "<%=contextPath%>/jxcp!getUserList.do";
	 		} else if (tab.id == "kqTab" && window.document.getElementById("ifrmKq").src == "") {
	 			window.document.getElementById("ifrmKq").src = "<%=contextPath%>/jxcp!getKqList.do";
	 		} else if (tab.id == "gzzlkhTab" && window.document.getElementById("ifrmGzzlkh").src == "") {
	 			window.document.getElementById("ifrmGzzlkh").src = "<%=contextPath%>/jxcp!getGzzlkhList.do";
	 		} else if (tab.id == "zxkhTab" && window.document.getElementById("ifrmZxkh").src == "") {
	 			window.document.getElementById("ifrmZxkh").src = "<%=contextPath%>/jxcp!getZxkhList.do";
	 		} 
	 	} else {
			window.document.getElementById("ifrmUser").src = "<%=contextPath%>/jxcp!getUserList.do";
			window.document.getElementById("ifrmKq").src = "<%=contextPath%>/jxcp!getKqList.do";
			window.document.getElementById("ifrmGzzlkh").src = "<%=contextPath%>/jxcp!getGzzlkhList.do";
			window.document.getElementById("ifrmZxkh").src = "<%=contextPath%>/jxcp!getZxkhList.do";
		}
		
		
	}

</script>  
<body class="standard" topmargin="0" leftmargin="0"> 
</body>  
</HEAD> 
</HTML>  